package com.obixlabs.kalua.domainmodel.list;

import com.obixlabs.kalua.domainmodel.BaseIdentifier;
import com.obixlabs.kalua.domainmodel.user.UserAccountReference;

public class ShoppingListId extends BaseIdentifier {
	
	private UserAccountReference userId;
	private String listName;
	
	public ShoppingListId() { }

	public ShoppingListId(UserAccountReference userId, String listName) {
		super();
		setUserId(userId);
		setListName(listName);
	}
	
	public UserAccountReference getUserId() { return this.userId; }
	private void setUserId(UserAccountReference userId) { this.userId = userId; }
	
	public String getListName() { return this.listName; }
	public void setListName(String listName) { this.listName = listName; }

	@Override
	protected Object[] getConstituents() 
	{ return new Object[]{getListName(), getUserId()};}	
}